package ${packageName}.api.service;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.HTTP;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

public interface ContentService{
    @GET("")
    Observable<String> issueGET(@Path("id")String id, @QueryMap Map<String, String> params, @Query("size") int size);

    @HTTP(method = "DELETE", path = "", hasBody = true)
    Observable<String> issueDELETE(@Body RequestBody body);

    @POST("")
    Observable<String> issueUploadFile(@Body MultipartBody file);

    @POST("")
    Observable<String> issuePOSTWithBody(@Body RequestBody body);

    @FormUrlEncoded
    @POST("")
    Observable<String> issuePOSTWithForm(@Field("p1") String p1);

    @PUT("")
    Observable<String> issuePUT(@Body RequestBody body);
}
